<@cms.editorHistoryList itemType=itemType itemId=itemId fieldName=fieldName userId=userId orderType=orderType pageIndex=pageNum pageSize=numPerPage>
<div class="pageHeader">
    <form class="pagerForm" autocomplete="off" onsubmit="return dialogSearch(this);" action="cmsEditorHistory/lookup.html" method="post">
        <#include "../include_page/parameters.html"/>
        <input type="hidden" name="fieldName" value="${fieldName!'text'}"/>
        <input type="hidden" name="itemType" value="${itemType!}"/>
        <input type="hidden" name="itemId" value="${itemId!}"/>
        <div class="searchBar">
            <ul class="searchContent">
                <li>
                    <label><@t.page 'my_content'/>:</label>
                    <input type="checkbox" name="userId"<#if userId?has_content> checked="checked"</#if> value="${admin.id}"/>
                </li>
            </ul>
            <div class="subBar">
                <ul>
                    <li>
                        <button type="submit" class="buttonActive"><@t.page 'button.search'/></button>
                    </li>
                </ul>
            </div>
        </div>
    </form>
</div>
<div class="pageContent">
    <table class="table" width="100%" targetType="dialog" layoutH  orderField="${orderField!}" orderType="${orderType!}">
        <thead>
            <tr>
                <th width="20"><@t.page 'use'/></th>
                <th><@t.page 'id'/></th>
                <th><@t.page 'user'/></th>
                <th orderField="createDate"><@t.page 'create_date'/></th>
                <th><@t.page 'compare'/></th>
            </tr>
        </thead>
        <tbody>
            <#list page.list as a>
                <@t.merge 'userIds' a.userId!/>
            </#list>
            <@sys.user ids=t.userIds!><#assign userMap=map!/></@sys.user>
            <#list page.list as a>
            <tr>
                <td>
                    <a href="cmsEditorHistory/use.html?id=${a.id}" target="dialog" mask="true" class="btnText green"><i class="icon-ok"></i><@t.page 'select'/></a>
                </td>
                <td>${a.id!}</td>
                <td class="center exclude-translate">
                    ${(userMap[a.userId?string].nickname)!}
                </td>
                <td>${a.createDate!}</td>
                <td>
                    <a href="cmsEditorHistory/compare.html?id=${a.id}" target="dialog" max="true" mask="true" class="btnText bule"><i class="bi bi-file-diff"></i><@t.page 'compare'/></a>
                </td>
            </tr>
            </#list>
        </tbody>
    </table>
    <#include "../include_page/pageDialog.html"/>
</div>
</@cms.editorHistoryList>